﻿package mortal.game.view.copy.groupCopy.view
{
    import com.mui.controls.*;
    import com.mui.utils.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.item.*;

    public class GroupCopyRewardCellRender extends GCellRenderer
    {
        private var _item:BaseItem;

        public function GroupCopyRewardCellRender()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._item = UICompomentPool.getUICompoment(BaseItem);
            this._item.setItemStyle(ItemStyleConst.Small, ImagesConst.PackItemBg, 2, 2);
            this._item.isShowLock = true;
            var _loc_1:Boolean = false;
            this._item.isDropAble = false;
            this._item.isDragAble = _loc_1;
            addChild(this._item);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(true);
            this._item.dispose(param1);
            this._item = null;
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            if (param1.itemData)
            {
                this._item.itemData = param1.itemData;
            }
            return;
        }// end function

    }
}
